package com.chihihx.launcher

import android.content.res.Configuration
import android.os.Build
import android.widget.TextView
import com.chihihx.launcher.ext.updateAppLocale
import com.chihihx.launcher.ui.fragment.FocusFragment
import com.chihihx.launcher.ui.fragment.SplashFragment
import com.chihihx.launcher.ui.fragment.WifiSettingFragment
import com.nova.android.tvlauncher.R
import com.nova.android.tvlauncher.databinding.ActivityCommonHxtvBinding
import com_github_lib_base.base.BaseViewModel
import com_github_lib_base.ext.replaceFragment
import java.util.Locale

class MainActivity : BaseWallpaperActivity<ActivityCommonHxtvBinding, BaseViewModel>() {
    override fun initView() {
        replaceFragment(SplashFragment(), R.id.container)
    }

    fun endSplash(){
        replaceFragment(FocusFragment(), R.id.container)
    }

    override fun onConfigurationChanged(newConfig: Configuration) {
        super.onConfigurationChanged(newConfig)

        // 检查语言是否变化
         //newConfig.updateAppLocale()

        // 根据需要刷新界面

    }




}